package cn.etynit.org.domain;
import java.util.Date;
import java.util.List;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.etynit.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * @author etynit
 * @since 2022-10-15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Shop extends BaseDomain{
    @Excel(name="店铺名称", orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    @Excel(name="电话", orderNum = "2", width = 30, isImportField = "true_st")
    private String tel;
    @Excel(name="创建时间", orderNum = "3", width = 30, isImportField = "true_st", format = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date registerTime = new Date();
    // 店铺状态：0：待审核、1：已审核、-1：驳回、2：待激活
    @Excel(name="状态", replace = {"待审核_0","已审核_1","驳回_-1","已激活_2"}, orderNum = "4", width = 30, isImportField = "true_st")
    private Integer state = 0;
    @Excel(name="地址", orderNum = "5", width = 30, isImportField = "true_st")
    private String address;
    @Excel(name="店铺Logo", orderNum = "6", width = 30, isImportField = "true_st")
    private String logo;

    private Long adminId;
    // 管理员
    private Employee admin;

    // 店长字段
    private String userName;

    private String note;

    // 创建时间
    private Date auditTime;

    // 审核日志
    private List<ShopAuditLog> auditLogs;


}
